package com.xyoto.takeawayUser.controller;

import com.xyoto.takeawayUser.service.CategoryService;
import com.xyoto.takeawayUser.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: 经营品类模块
 * @Author: 挽风
 * @Date: 2022
 * @Copyright: 2022 by 挽风
 * @Description:
 **/

@RestController
@RequestMapping("/category")
@Api(tags = "经营品类模块")
public class CategoryController {
    
    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    @ApiOperation(value = "获取经营品类", notes = "查询轮播图下方的经营品类列表")
    public Result getCategoryList(){
        return categoryService.getCategoryList();
    }
}
